<div class="wrapper wrapper-content fadeInRight" ng-controller="diseaseCtr">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content" style="overflow: auto">
                    <div class="col-sm-12 no-padding">
                        <ul class="nav nav-tabs">
                            <li ng-repeat="item in data.tabList" ng-class="{'active' : item.index == data.index}" ng-click="getDisease(item.index)"><a data-toggle="tab">{{item.name}}</a></li>
                        </ul>
                    </div>
                    <form class="form-horizontal col-sm-12" id="editForm" style="margin-top: 20px;">
                        <div ng-repeat="(key,item) in data.list">
                            <div ng-if="key == '外观检测'">
                                <table class="table table-bordered table-hover text-center">
                                    <!--                                    ['序号', '桥幅', '检测部位及位置', '设计值(mm)', '实测保护层厚度（mm）', '照片', '备注']-->
                                    <tr>
                                        <th colspan="7" style="font-size: 14px;font-weight: bold;text-align: center">外观检测</th>
                                    </tr>
                                    <tr>
                                        <td>序号</td>
                                        <td>桥幅</td>
                                        <td>构件部位及编号</td>
                                        <td>损害类型</td>
                                        <td>外观检测描述</td>
                                        <td>照片</td>
                                        <td>备注</td>
                                    </tr>
                                    <tr ng-repeat="(index,value) in item">
                                        <td>{{index + 1}}</td>
                                        <td>{{value.title}}</td>
                                        <td>{{value.num}}</td>
                                        <td>{{value.pattern}}</td>
                                        <td>{{value.desc}}</td>
                                        <td><a target="_blank" href="{{value.image}}"><img ng-src="{{value.image}}" height="50px"></a></td>
                                        <td>{{value.memo}}</td>
                                    </tr>
                                </table>
                            </div>
                            <div ng-if="key == '钢筋保护层厚度'">
                                <table class="table table-bordered table-hover text-center">
                                    <tr>
                                        <th colspan="7" style="font-size: 14px;font-weight: bold;text-align: center">钢筋保护层厚度</th>
                                    </tr>
                                    <tr>
                                        <td>序号</td>
                                        <td>桥幅</td>
                                        <td>检测部位及位置</td>
                                        <td>设计值(mm)</td>
                                        <td>实测保护层厚度（mm）</td>
                                        <td>照片</td>
                                        <td>备注</td>
                                    </tr>
                                    <tr ng-repeat="(index,value) in item">
                                        <td>{{index + 1}}</td>
                                        <td>{{value.title}}</td>
                                        <td>{{value.num}}</td>
                                        <td>{{value.pattern}}</td>
                                        <td>{{value.desc}}</td>
                                        <td>
                                            <a target="_blank" href="{{value.image}}"><img ng-src="{{value.image}}" height="50px"></a>
                                        </td>
                                        <td>{{value.memo}}</td>
                                    </tr>
                                </table>
                            </div>
                            <div ng-if="key != '钢筋保护层厚度' && key != '外观检测'">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">{{key}}：</label>
                                    <div class="col-sm-8">
                                        <a ng-repeat="(index ,value) in item" class="btn btn-primary" style="margin-right: 10px" href="{{value.file}}" target="_blank">
                                            下载文件<span ng-if="item.length>1">{{index + 1}}</span>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div ng-if="data.list.length==0" style="margin-top: 80px;text-align: center"><h3>暂无数据</h3></div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>